﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class XeBUS
    {
        public static List<Xe> Select_Xe_by_MaTuyenDuong(String MaTuyenDuong,String Ngay)
        {
            try
            {
                return XeDAO.Select_Xe_by_MaTuyenDuong(MaTuyenDuong,Ngay);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static void CapNhatTinhTrangXeTheoSoGheConTrong(String MaXe)
        {
            try
            {
                XeDAO.CapNhatTinhTrangXeTheoSoGheConTrong(MaXe);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static List<Xe> Select_All()
        {
            try
            {
                return XeDAO.Select_All();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
